<?php
require '../nette.min.php';
Nette\Diagnostics\Debugger::enable();
Nette\Diagnostics\Debugger::$strictMode = TRUE;
require '../loader.php';

//$twa = \WDB\WebUI\Table::forTableName('zavodnik');
//$passwordCheck = new WDB\WebUI\ColumnPasswordCheck($twa,'Heslo znovu:', 'password', 'passwordCheck');
//$twa->addColumn($passwordCheck);
//$twa->columns['password']->setDisplayModes(\WDB\WebUI\iColumn::DISPLAY_EDIT);

//$twa->order('jmeno', 'grp');

//WDB\Database::registerConnection('eshopled', WDB\Structure\ConnectionConfig::create('mysql', 'localhost', 'root', 'root', 'eshop_led'));
//$conn = WDB\Database::getInstance('eshopled');

//$wa = WDB\WebUI\Schema::forCurrentSchema();

//$wa = WDB\WebUI\Schema::forSchemaName('te.st ššš');
$wa = WDB\WebUI\Schema::forCurrentSchema();


?>
<html>
    <head>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/public/wdb.js"></script>
        <link rel="stylesheet" type="text/css" href="/public/wdb.css" />
        <script type="text/javascript">
            wdb.config.ajaxUrl = '/public/ajax.php';
        </script>
    </head>
    <body>

<?php //$twa->show(); ?>
<?php $wa->show(); ?>
</body>
</html>